package HslCommunication;

import HslCommunication.BasicFramework.SoftBasic;
import java.security.MessageDigest;
import java.util.Date;

public class Authorization {
    private static String Declaration = "HSLCommunication Decompile";
    private static Date niahdiahduasdbubfas = new Date();
    private static long naihsdadaasdasdiwasdaid = 0L;
    private static long moashdawidaisaosdas = 0L;
    private static double nuasgdawydbishcgas = 8.0D;
    private static int nuasgdaaydbishdgas = 0;
    private static int nuasgdawydbishdgas = 8;
    private static double nuasgdawydaishdgas = 24.0D;
    private static int nasidhadguawdbasd = 1000;
    private static int niasdhasdguawdwdad = 12345;
    private static int hidahwdauushduasdhu = 23456;
    private static long iahsduiwikaskfhishfdi = 0L;
    private static int zxnkasdhiashifshfsofh = 0;
    private static String[] codes = new String[]{"666666"};

    public Authorization() {
    }

    public static boolean nzugaydgwadawdibbas() {
        return Boolean.TRUE;
    }

    public static boolean asdniasnfaksndiqwhawfskhfaiw() {
        return Boolean.TRUE;
    }

    private static boolean nuasduagsdwydbasudasd() {
        return true;
    }

    private static boolean asdhuasdgawydaduasdgu() {
        return false;
    }

    private static boolean ashdadgawdaihdadsidas() {
        return niasdhasdguawdwdad == 12345;
    }

    private static Date iashdagsdawbdawda() {
        return new Date();
    }

    private static Date iashdagsaawbdawda() {
        return Utilities.AddDateDays(new Date(), 1);
    }

    private static Date iashdagsaawadawda() {
        return Utilities.AddDateDays(new Date(), 2);
    }

    private static void oasjodaiwfsodopsdjpasjpf() {
    }

    static String nasduabwduadawdb(String miawdiawduasdhasd) {
        StringBuilder asdnawdawdawd = new StringBuilder();

        try {
            MessageDigest asndiawdniad = MessageDigest.getInstance("MD5");
            byte[] asdadawdawdas = asndiawdniad.digest(Utilities.csharpString2Byte(miawdiawduasdhasd));

            for(int andiawbduawbda = 0; andiawbduawbda < asdadawdawdas.length; ++andiawbduawbda) {
                asdnawdawdawd.append(SoftBasic.ByteToHexString(new byte[]{(byte)(~asdadawdawdas[andiawbduawbda])}));
            }

            return asdnawdawdawd.toString();
        } catch (Exception var5) {
            return "";
        }
    }

    public static boolean SetAuthorizationCode(String code) {
        return Boolean.TRUE;
    }

    static {
        niahdiahduasdbubfas = iashdagsdawbdawda();
        if (naihsdadaasdasdiwasdaid != 0L) {
            naihsdadaasdasdiwasdaid = 0L;
        }

        if (nuasgdawydaishdgas != 24.0D) {
            nuasgdawydaishdgas = 24.0D;
        }

        if (nuasgdaaydbishdgas != 0) {
            nuasgdaaydbishdgas = 0;
        }

        if (nuasgdawydbishdgas != 24) {
            nuasgdawydbishdgas = 24;
        }

    }
}
